package com.atguigu.edu.publisher.service.impl;

import com.atguigu.edu.publisher.beans.TradeFullOrderAmount;
import com.atguigu.edu.publisher.beans.TradeProvinceOrderAmount;
import com.atguigu.edu.publisher.mapper.TradeStatsMapper;
import com.atguigu.edu.publisher.service.TradeStatsService;
import org.apache.flink.api.java.tuple.Tuple3;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TradeStatsServiceImpl implements TradeStatsService {
    @Autowired
    private TradeStatsMapper tradeStatsMapper;

    @Override
    public List<TradeProvinceOrderAmount> getProvinceAmount(Integer date) {
        return tradeStatsMapper.selectProvinceAmount(date);
    }

    @Override
    public TradeFullOrderAmount getFullOrderAmount(Integer date) {
        return tradeStatsMapper.selectFullOrderAmount(date);
    }

/*
    @Override
    public Tuple3<String, String, String> getFullOrderAmount(Integer date) {
        return tradeStatsMapper.selectFullOrderAmount(date);
    }
*/


}


